<template>
	<view class="box">
		<view class="minbox" v-for="(item,index) in list" :key="index">
			<view class="text">{{item.name}}</view>
			<view class="desc">{{item.desc}}</view>
			<view class="imgbox">
				<view class="imgone img">
					<image :src="item.image1" mode=""></image>
				</view>
				<view class="imgtwo img">
					<image :src="item.image2" mode=""></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import axios from "axios"
	export default{
		data(){
			return{
				list:[]
			}
		},
		mounted(){
			axios.get('http://localhost:8080/getResource/getData2').then(res=>{					//使用模拟接口获取数据 渲染页面
				console.log(res.data)
				this.list = res.data
			})
		}
	}
</script>

<style lang="scss" scoped>
	.box{
		display: flex;
		height: 151px;
		background-color: white;
		.minbox:nth-child(1){
			border-right: 1px solid #ccc;
			
		}
		.minbox{
			padding: 10px 27px;
			box-sizing: border-box;
			width: 50%;
			// border-right: 1px solid #ccc;
			.text{
				font-size: 18px;
				font-weight: 700;
			}
			.desc{
				margin: 5px 0;
				font-size: 14px;
				color: rgb(179,153,153);
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
			}
			.imgbox{
				display: flex;
				.img{
					width: 67px;
					height: 67px;
					image{
						width: 100%;
						height: 100%;
					}
				}
				.imgone{
					margin-right: 5px;
				}
			}
		}
		
	}
</style>